<template>
  <div class="app" :style="{ height: divHeight }">
    <router-view />
  </div>
</template>
<script>
export default {
  //获取屏幕高度
  created() {
    var divWidth =
      window.innerWidth ||
      document.documentElement.clientWidth ||
      document.body.clientWidth;
    let divHeight =
      window.innerHeight ||
      document.documentElement.clientHeight ||
      document.body.clientHeight;
    this.divWidth = divWidth + "px";
    this.divHeight = divHeight + "px";
  },
};
</script>
<style lang="scss">
//公共样式
* {
  margin: 0px;
  padding: 0px;
}
a {
  text-decoration: none;
}
img {
  vertical-align: top;
  border: none;
}
ul,
li,
ol {
  margin: 0px;
  padding: 0px;
  list-style: none;
}

</style>
